

package com.zmks.jkgj.xuexiao.controller;




import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


import com.zmks.jkgj.core.controller.ABaseController;
import com.zmks.jkgj.core.resp.Resp;
import com.zmks.jkgj.xuexiao.resp.WebResp;
import com.zmks.jkgj.xuexiao.service.ICrctConfigPositionService;
import com.zmks.jkgj.xuexiao.service.ICrctConfigScoreTypeService;
import com.zmks.jkgj.xuexiao.vo.CrctConfigPositionVO;
import com.zmks.jkgj.xuexiao.vo.CrctConfigScoreTypeVO;

@Controller
public class CrctConfigPositionController extends ABaseController {
	
	 @Autowired
		
		private ICrctConfigPositionService crctConfigPositionService;	

		 //查询
		@RequestMapping("/get_CrctConfigPosition_list")
		@ResponseBody
		public Resp get_CrctConfigPosition_list( Integer pageIndex,
				Integer pageSize,HttpServletRequest request) {
			WebResp 	webResp = new WebResp();
		   CrctConfigPositionVO CrctConfigPositionVO=new  CrctConfigPositionVO();
			webResp.setData(crctConfigPositionService.getList(CrctConfigPositionVO));
			webResp.setTotalCount(15);
			return webResp;
		}
		 //增加
		@RequestMapping("/save_CrctConfigPosition")
		@ResponseBody
		public Resp save_CrctConfigPosition( Integer pageIndex,
				Integer pageSize,HttpServletRequest request) {
			WebResp 	webResp = new WebResp();
		   CrctConfigPositionVO CrctConfigPositionVO=new  CrctConfigPositionVO();
		   CrctConfigPositionVO.setName("zhanghao");
		   CrctConfigPositionVO.setModify_date(new Date());
		   crctConfigPositionService.save(CrctConfigPositionVO);
			return webResp;
		}
		 //删除
		@RequestMapping("/remove_CrctConfigPosition")
		@ResponseBody
		public Resp remove_CrctConfigPosition( Integer pageIndex,
				Integer pageSize,HttpServletRequest request) {
			WebResp 	webResp = new WebResp();
			CrctConfigPositionVO CrctConfigPositionVO=new  CrctConfigPositionVO();
			crctConfigPositionService.remove(CrctConfigPositionVO);
			return webResp;
		}
	
	
	
	

}
